Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Butler's gulp-sass requirement to work with yarn #100

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

patrickfweston
Copy link
Contributor

@patrickfweston patrickfweston commented Mar 16, 2018

Problem

While yarn may be run locally to compile styleguides, many of our deployment processes rely on building the styleguide prior to deployment. Therefore, when running phing build after upgrading a project to yarn, the styleguide is not built and the freshest CSS/JS is not deployed.

Description

The current version of gulp-sass that we are using relies on a version of node-sass that has no compiled binaries for Linux. When running this from inside of Vagrant, errors are thrown as yarn attempts to build node-sass from source. It cannot build from source because node-sass 3.13.1 only supports down to node 7. yarn requires node 9+. As a result, it is impossible to run yarn from within Vagrant.

Solution

The solution is simple: change the dependency in Butler to use a newer version of gulp-sass (which therefore requires a newer version of node-sass). The latest versions support node 9 (and therefore yarn).

To test

  1. Delete your node_modules/ folder
  2. Run yarn from the styleguide/ directory in a project
  3. It should complete. Run yarn run butler. It should serve the styleguide.

@patrickfweston patrickfweston self-assigned this Mar 16, 2018
@patrickfweston patrickfweston changed the title WIP: Updating Butler to work with Yarn Update Butler's gulp-sass requirement to work with Yarn Mar 16, 2018
@patrickfweston patrickfweston changed the title Update Butler's gulp-sass requirement to work with Yarn Update Butler's gulp-sass requirement to work with yarn Mar 16, 2018
@biz123
Copy link
Contributor

biz123 commented Apr 18, 2018

This is not critical, but I run butler on Argonne with this update I'm now getting a lot of these warnings:

screen shot 2018-04-18 at 3 03 35 pm

I believe mixins in singularity and posscss that are using call() are triggering this. We should see if they are updated to fix this in newer versions.

@byrond byrond mentioned this pull request Oct 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants